﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Entity;   

namespace IRepository
{
    /// <summary>
    /// 字典类型仓储接口
    /// 定义“字典类型”的数据库访问规范
    /// </summary>
    public interface ISysDictTypeRepository
    {
        /// <summary>获取所有启用的字典类型</summary>
        Task<List<SysDictType>> GetAllDictTypesAsync();

        /// <summary>根据编码获取字典类型</summary>
        /// <param name="dictTypeCode">字典类型编码</param>
        Task<SysDictType> GetDictTypeByCodeAsync(string dictTypeCode);
    }
}
